package cn.edu.neusoft.wuguangsheng.flowerimpression.model;

import java.util.List;

import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.AnswerAskBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.iface.GetMyAnswerListIface;
import cn.edu.neusoft.wuguangsheng.flowerimpression.listener.ListListener;
import cn.edu.neusoft.wuguangsheng.flowerimpression.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class GetMyAnswerListModel  extends RetrofitBaseModel implements GetMyAnswerListIface<AnswerAskBean> {
    private AllService allService;
    private Retrofit retrofit;
    public GetMyAnswerListModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }
    @Override
    public void getMyAnswerList(String userid, ListListener<AnswerAskBean> listListener) {
        Call<List<AnswerAskBean>> call = allService.getMyAnswerList(userid);
        callenqueueList(call,listListener);
    }
}
